<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>  
<%java.util.Random r=new java.util.Random();  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript">
function showInfo(id){
	if(id == 1){
		document.getElementById("s1").className = "btn_schedule3";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule4"; 
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t1").style.display = "block";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "none";
	}else if(id == 2){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule3";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule4"; 
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t2").style.display = "block";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "none";
	}else if(id == 3){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule3";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule4";  
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t3").style.display = "block";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "none";
	}else if(id == 4){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule3";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule4"; 
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t4").style.display = "block";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "none";
	}else if(id == 5){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule3"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule4"; 
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t5").style.display = "block";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "none";
	}else if(id == 6){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule3"; 
		document.getElementById("s7").className = "btn_schedule4"; 
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "block";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "none";
	}else if(id == 7){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule3"; 
		document.getElementById("s8").className = "btn_schedule4";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "block";
		document.getElementById("t8").style.display = "none";
	}else if(id == 8){
		document.getElementById("s1").className = "btn_schedule4";
		document.getElementById("s2").className = "btn_schedule4";
		document.getElementById("s3").className = "btn_schedule4";
		document.getElementById("s4").className = "btn_schedule4";
		document.getElementById("s5").className = "btn_schedule4"; 
		document.getElementById("s6").className = "btn_schedule4"; 
		document.getElementById("s7").className = "btn_schedule4"; 
		document.getElementById("s8").className = "btn_schedule3";
		document.getElementById("t1").style.display = "none";
		document.getElementById("t2").style.display = "none";
		document.getElementById("t3").style.display = "none";
		document.getElementById("t4").style.display = "none";
		document.getElementById("t5").style.display = "none";
		document.getElementById("t6").style.display = "none";
		document.getElementById("t7").style.display = "none";
		document.getElementById("t8").style.display = "block";
	}
}
function advancedQueryDialog(){
	var url = "./linkman.do?action=advancedQueryLinkMan&radom="+<%=r.nextInt(100)%>;
	var dlgParam = "dialogHeight:360px;dialogWidth:450px;dialogTop:300px;dialogLeft:400px;status:no;help:no;scrollbars:yes;";
	var rt = window.showModalDialog(url,"",dlgParam);
	if(rt != undefined){		
		//根据从子窗口得到的值，从中提取customerCode,customerName,industryId,areaId,salePersonId,
		//customerSourceId,requireDesc,startCreateDate,endCreateDate,startLastLinkDate,endLastLinkDate
		var tStr = rt.split(",");										
		document.getElementById("customerName").value = tStr[0];
		document.getElementById("linkmanName").value = tStr[1];
		document.getElementById("industryId").value = tStr[2];
		document.getElementById("areaId").value = tStr[3];
		document.getElementById("officePhone").value = tStr[4];
		document.getElementById("mobile").value = tStr[5];
		document.getElementById("email").value = tStr[6];
		document.getElementById("sFlag").value = "2";
		document.deptCustomerForm.action = "./linkman.do?action=deptCustomerLinkMan";
		document.deptCustomerForm.target = "main";
		document.deptCustomerForm.submit();
	}
}
function showHidden(id){
	
	var obj = document.getElementById(id);
	if(obj.style.display == "none"){
		document.getElementById(id).style.display = "block";
		document.getElementById("img"+id).src = "./images/nolines_minus.gif";
	}else{
		document.getElementById(id).style.display = "none";
		document.getElementById("img"+id).src = "./images/nolines_plus.gif";
	}
}
function pageCustomer(flag){
	document.deptCustomerForm.action = "./linkman.do?action=deptCustomerLinkMan&flag="+flag;
	document.deptCustomerForm.target = "main";
	document.deptCustomerForm.submit();
}

function viewContract(id){
	
	document.deptCustomerForm.action = "./linkman.do?action=deptCustomerLinkMan&customerId="+id+"&see=see&cp="+${currentPage};
	document.deptCustomerForm.target = "main";
	document.deptCustomerForm.submit();
	
	
}
function init(id){

	<c:forEach items="${customers}" var="item" >
	
	if(id !== ${item.id}){
	document.getElementById(${item.id}).checked = false;
	}
	document.getElementById(id).checked = true;	
	</c:forEach>
	
}
function searchCustomer(){

	document.getElementById("sFlag").value = "1";
	document.deptCustomerForm.action = "./linkman.do?action=deptCustomerLinkMan";
	document.deptCustomerForm.target = "main";
	document.deptCustomerForm.submit();
}
</script>
</head>
<!--<body onload="init(${customerId })">
-->
<body><form name="deptCustomerForm" action="" method="post">
	<table class="table_frame5">
		<tr>
			<td>
				<table class="table_title1">
					<tr>
						<td class="title_lab">部门联系人</td>
					</tr>
					<tr>
						<td valign="bottom" class="a_tools" style="padding-left: 3px;">
							<INPUT TYPE="TEXT" size="40" id="customerName2" name="customerName2" value="${customerName2 }" class="gray_input" onfocus="if (value =='客户名称'){value =''}" onblur="if (value ==''){value='客户名称'}">
							<input id="sFlag" name="sFlag" type="hidden" value="${sFlag}"/>
							<a class="search" href="javascript:searchCustomer();" target="main" hidefocus="true">快速查询</a>
							|<a class="asearch" href="javascript:advancedQueryDialog();" target="main" hidefocus="true">高级查询</a>
						
							   
						</td>
						<!-- 
						<td valign="bottom" align="right">
							<a href="javascript:back();" title="返回" hidefocus="true">返回</a>&nbsp;&nbsp;
						</td>
						 -->
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr style="display: block;height: 2px;">
			<td class="line1" colspan="2"></td>
		</tr>
		<tr height="5px"></tr>
		<tr>
			<td>
				<table class="table_title5" align="center">
					<tr>
						<td>
						<div class="menu_top">
							<ul>
								<li>
									<a href="#">操作</a>
									 <ul>
										 <li><a href="#">新增客户</a></li>
										 <li><a href="#">新增联系人</a></li>
										 <li><a href="#">新增联系记录</a></li>
										 <li><a href="#">编辑客户档案</a></li>
										 <li><a href="#">删除客户</a></li>
									 </ul>
								</li>
							</ul>
						</div>
						</td>
						<td align="right" valign="">
							<!-- page -->
							<table class="table_page2">
								<tr>
									<td valign="bottom">
										<img src="./images/frist.bmp" onclick="pageCustomer(1)" alt="首页" style="vertical-align: middle;cursor: hand;">
										<img src="./images/last.bmp" onclick="pageCustomer(2)" alt="上一页" style="vertical-align: middle;cursor: hand;">&nbsp;
										<font color="red">${currentPage}</font>/${totalPages}&nbsp;<fmt:message key='common.page'/>&nbsp;
										<img src="./images/next.bmp" onclick="pageCustomer(3)" alt="下一页" style="vertical-align: middle;cursor: hand;">
										<img src="./images/end.bmp" onclick="pageCustomer(4)" alt="末页" style="vertical-align: middle;cursor: hand;">
										共&nbsp;&nbsp;${totalRows}&nbsp;<fmt:message key='common.page.totalRow'/>&nbsp;&nbsp;&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr><td colspan="3" height="2"></td></tr>
					<tr>
						<td valign="top" colspan="2">
							<table class="table">
								<tr>
									<td valign="top">
										<table class="table_style" >
											<tr>
												<td class="title" width="8"></td>
												<td class="title" width="30">查看</td>
												<td class="title" >客户名称</td>
												<td class="title" >
													姓名
												</td>
												<td class="title" >职位</td>
												<td class="title" >角色</td>
												<td class="title" >联系电话</td>
												<td class="title">手机</td>
												<td class="title" >电子邮件</td>
												
											</tr>
											
											<c:forEach items="${linkmans}" var="item" varStatus="s">
											
											<tr onmouseover="onmousemoveChange(this,'img${s.count}')" onmouseout="onmouseoutChange(this,'img${s.count}')">
												<td height="16" width="8" align="right"><img id="img${s.count}" src="./images/table_sign2.bmp"></td>
												<td>
												<input type="radio" id="${item.customerId }" onclick="viewContract(${item.customerId})"/>
												
												
												</td>
												<td><a href="./customerManage.do?action=customerDetail&customerId=${item.customerId}&sign=125" target="main">${item.customerName}</a></td>
												<td>${item.linkmanName }</td>
												<td>${item.linkmanDuty}</td>
												<td>${item.itemRole }</td>
												<td>${item.officePhone }</td>
												<td>${item.mobile }</td>
												<td>${item.email }</td>
											</tr>
											
											</c:forEach>
											
										</table>
									</td>
								</tr>
								<tr>
									<td align="left" valign="bottom">
										<!-- page -->
										<table >
											<tr>
												<td>&nbsp;&nbsp;
													<!--<img src="./images/frist.bmp" onclick="pageCustomer(1)" alt="首页" style="vertical-align: middle;cursor: hand;">
													<img src="./images/last.bmp" onclick="pageCustomer(2)" alt="上一页" style="vertical-align: middle;cursor: hand;">&nbsp;
													<font color="red">${currentPage}</font>/${totalPages}&nbsp;<fmt:message key='common.page'/>&nbsp;
													<img src="./images/next.bmp" onclick="pageCustomer(3)" alt="下一页" style="vertical-align: middle;cursor: hand;">
													<img src="./images/end.bmp" onclick="pageCustomer(4)" alt="末页" style="vertical-align: middle;cursor: hand;">
													共&nbsp;&nbsp;${totalRows}&nbsp;<fmt:message key='common.page.totalRow'/>
												--></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table class="table_title5" align="center">
					<tr>
						<td>
							<table class="table_title6">
								<tr>
									<td>
										<button id="s1" class="btn_schedule3" onclick="showInfo(1)" hidefocus="true">基本信息</button>
										<button id="s2" class="btn_schedule4" onclick="showInfo(2)" hidefocus="true">联系人</button>
										<button id="s4" class="btn_schedule4" onclick="showInfo(4)" hidefocus="true">销售活动</button>
										<button id="s8" class="btn_schedule4" onclick="showInfo(8)" hidefocus="true">关怀记录</button>
										<button id="s3" class="btn_schedule4" onclick="showInfo(3)" hidefocus="true">销售信息</button>
										<button id="s6" class="btn_schedule4" onclick="showInfo(6)" hidefocus="true">合同</button>
										<button id="s7" class="btn_schedule4" onclick="showInfo(7)" hidefocus="true">应收账款</button>
										<button id="s5" class="btn_schedule4" onclick="showInfo(5)" hidefocus="true">附件</button>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr >
						<td style="background-color: #F2F7FA;padding: 0px;">
							<div id="t1" style="display: block;background-color: #F2F7FA;" >
											<table  cellpadding="0" cellspacing="0" border="0" width="100%">
											
												<tr height="20px"></tr>
												<tr>
													<td>
														<table style="padding: 0px;margin: 0px">
															<tr>
																<td width="30px"></td>
																<td width="100px" class="newtd" height="18px">关键客户信息</td>
															</tr>
														</table>
													</td>
												</tr>
												
											
													<tr id="11" style="display: block;padding: 0px;">
												
													<td style="padding: 0px;">
														<table class="table31" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
															<tr>
																<td colspan="4"></td>
															</tr>
															<tr align="center">
																<td align="right" width="100"><!-- 客户名称 -->
																	 客户名称:
																</td>
																<td align="left" width="300">${customer.customerName}</td>
																<td align="right" width="100"><!-- 客户编号 -->
																	客户编号:
																</td>
																<td align="left">
																	${customer.customerCode}
																	<input id="customerCode" name="customerCode" type="hidden" value="${customer.customerCode}"/>
																	<input id="id" name="id" type="hidden" value="${customer.id}"/>
																</td>
															</tr>
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															<tr align="center">
																<td align="right" width="100"><!-- 总机 -->
																	总机:
																</td>
																<td align="left" width="300">${customer.phone}</td>
																<td align="right" width="100"><!-- 传真 -->
																	传真:
																</td>
																<td align="left">${customer.fax}</td>
															</tr>
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															<tr align="center">
																<td align="right" width="100"><!-- 地址 -->
																	地址:
																</td>
																<td colspan="3" align="left">${customer.address}</td>
															</tr>
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															<tr>
																<td colspan="4"></td>
															</tr>
														</table>
													</td>
												</tr>
												
												<tr height="15px"></tr>
												<tr>
													<td>
														<table>
															<tr>
																<td width="30px"></td>
																<td width="100px" class="newtd" height="18px">附加信息</td>
															</tr>
														</table>
													</td>
												</tr>
													<tr id="12" style="display: block;">
													<td>
														<table class="table31" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
															<tr></tr>
															
															<tr>
																							
																<td align="right" width="100"><!-- 行业 -->
																	行业:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['110']}">
																		<c:if test='${customer.industryId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
															
																
																<td align="right" width="100"><!-- 区域 -->
																区域:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['111']}">
																		<c:if test='${customer.areaId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
														
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 员工数量 -->
																	员工数量:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['116']}">
																		<c:if test='${customer.employeeNumId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
															
																
																<td align="right" width="100"><!-- 产值 -->
																	产值:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['112']}">
																		<c:if test='${customer.outputValueId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
														
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
														
															<tr>
																
																<td align="right" width="100"><!-- 行业细分 -->
																	行业细分:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['127']}">
																		<c:if test='${customer.subIndustryId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
																
																<td align="right" width="100"><!-- 企业类型 -->
																	企业类型:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['113']}">
																		<c:if test='${customer.companyTypeId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
														
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 公司网址 -->
																	公司网址:
																</td>
																<td align="left" width="300">${customer.http}</td>
															
																<td align="right" width="100"><!-- 利润 -->
																	利润:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['115']}">
																		<c:if test='${customer.profitsId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 客户简称 -->
																	客户简称:
																</td>
																<td align="left" width="300">${customer.customerSimple}</td>
																
															
																<td align="right" width="100"><!-- 税号 -->
																	税号:
																</td>
																<td align="left" width="300">${customer.taxCode}</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 开户行 -->
																	开户行:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['119']}">
																		<c:if test='${customer.bankDepositId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
																<td align="right" width="100"><!-- 邮编 -->
																	邮编:
																</td>
																<td align="left" width="300">${customer.zip}</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 是否上市 -->
																	是否上市:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['121']}">
																		<c:if test='${customer.isMarketId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
																<td align="right" width="100"><!-- 独立采购权 -->
																	独立采购权:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['122']}">
																		<c:if test='${customer.isPurchaseId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 客户类型 -->
																	客户类型:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['123']}">
																		<c:if test='${customer.customerTypeId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
																<td align="right" width="100"><!-- 国家 -->
																	国家:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['124']}">
																		<c:if test='${customer.countryId == range.id}'>${range.CName}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
															
															
															
															<tr>
																
																<td align="right" width="100"><!-- 省级 -->
																	省级:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['125']}">
																		<c:if test='${customer.provinceId == range.id}'>${range.CName}</c:if>
																	</c:forEach>
																</td>
																
																
																<td align="right" width="100"><!-- 市级 -->
																	市级:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['126']}">
																		<c:if test='${customer.cityId == range.id}'>${range.CName}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 客户集群 -->
																	客户集群 :
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['128']}">
																		<c:if test='${customer.clusterId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
																<td align="right" width="100"><!-- 客户规模 -->
																	客户规模:
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['129']}">
																		<c:if test='${customer.scaleId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															
															<tr>
																
																<td align="right" width="100"><!-- 母公司 -->
																	母公司:
																</td>
																<td align="left" width="300">${customer.parentCompany}</td>
																
																
																<td align="right" width="100"><!-- 自定义母级 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['131'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['131'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['131']}">
																		<c:if test='${customer.customParentId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																
															</tr>
															
															<tr style="display: block;height: 2px;">
																<td class="line1" colspan="4"></td>
															</tr>
															<c:if test="${records['132'].status == 1 || records['133'].status == 1}">
															<tr>
																<c:if test="${records['132'].status == 1}">
																<td align="right" width="100"><!-- 自定义子级 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['132'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['132'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['132']}">
																		<c:if test='${customer.customSublevelId == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																</c:if>
																<c:if test="${records['133'].status == 1}">
																<td align="right" width="100"><!-- 自定义分类1 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['133'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['133'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['133']}">
																		<c:if test='${customer.customTypeId1 == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																</c:if>
															</tr>
															</c:if>
														
															<c:if test="${records['134'].status == 1 || records['135'].status == 1}">
															<tr>
																<c:if test="${records['134'].status == 1}">
																<td align="right" width="100"><!-- 自定义分类2 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['134'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['134'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['134']}">
																		<c:if test='${customer.customTypeId2 == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																</c:if>
																<c:if test="${records['135'].status == 1}">
																<td align="right" width="100"><!-- 自定义分类3 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['135'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['135'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['135']}">
																		<c:if test='${customer.customTypeId3 == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																</c:if>
															</tr>
															</c:if>
															
															<c:if test="${records['136'].status == 1 || records['137'].status == 1}">
															<tr>
																<c:if test="${records['136'].status == 1}">
																<td align="right" width="100"><!-- 自定义分类4 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['136'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['136'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">${customer.customType4}</td>
																</c:if>
																<c:if test="${records['137'].status == 1}">
																<td align="right" width="100"><!-- 自定义分类5 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['137'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['137'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">${customer.customType5}</td>
																</c:if>
															</tr>
															</c:if>
															
															<c:if test="${records['138'].status == 1 || records['139'].status == 1}">
															<tr>
																<c:if test="${records['138'].status == 1}">
																<td align="right" width="100"><!-- 自定义分类6 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['138'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['138'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">${customer.customType6}</td>
																</c:if>
																<c:if test="${records['139'].status == 1}">
																<td align="right" width="100"><!-- 自定义项1 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['139'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['139'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">${customer.customItem1}</td>
																</c:if>
															</tr>
															</c:if>
															
															<c:if test="${records['140'].status == 1 || records['141'].status == 1}">
															<tr>
																<c:if test="${records['140'].status == 1}">
																<td align="right" width="100"><!-- 自定义项2 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['140'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['140'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">${customer.customItem2}</td>
																</c:if>
																<c:if test="${records['141'].status == 1}">
																<td align="right" width="100"><!-- 自定义项3 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['141'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['141'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">${customer.customItem3}</td>
																</c:if>
															</tr>
															</c:if>
															
															<c:if test="${records['142'].status == 1 || records['143'].status == 1}">
															<tr>
																<c:if test="${records['142'].status == 1}">
																<td align="right" width="100"><!-- 自定义项4 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['142'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['142'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['142']}">
																		<c:if test='${customer.customItemId4 == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																</c:if>
																<c:if test="${records['143'].status == 1}">
																<td align="right" width="100"><!-- 自定义项5 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['143'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['143'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300">
																	<c:forEach var="range" items="${ranges['143']}">
																		<c:if test='${customer.customItemId5 == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
																</c:if>
															</tr>
															</c:if>
															
															<c:if test="${records['144'].status == 1}">
															<tr>
																<td align="right" width="100"><!-- 自定义项6 -->
																	<c:choose>
																		<c:when test="${language == 2}">${records['144'].currentRecordEn}：</c:when>
																		<c:otherwise>${records['144'].currentRecord}：</c:otherwise>
																	</c:choose>
																</td>
																<td align="left" width="300" colspan="3">
																	<c:forEach var="range" items="${ranges['144']}">
																		<c:if test='${customer.customItemId6 == range.id}'>${range.rangeValue}</c:if>
																	</c:forEach>
																</td>
															</tr>
															</c:if>
															<tr></tr>
														</table>
													</td>
												</tr>
											</table>
									
							</div>
							<div id="t2" style="display: none;background-color: #F2F7FA;">
								<table  cellpadding="0" cellspacing="0" border="0" width="100%">
								
									<tr height="20px"></tr>
									<tr>
										<td>
											<table style="padding: 0px;margin: 0px">
												<tr>
													<td width="30px"></td>
													<td width="100px" class="newtd" height="18px">联系人信息</td>
												</tr>
											</table>
										</td>
									</tr>
									
									<tr id="2">
										<td>
											<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
												<tr >
													
													<td class="title">姓名</td>
													<td class="title">职位</td>
													<td class="title">联系人角色</td>
													<td class="title">手机</td>
													<td class="title">电子邮件</td>
													
												</tr>
												<c:forEach var="linkman" items="${customer.linkmans}">
												<tr>
													
													<td >
												${linkman.linkmanName}
													</td>
													<td >
													
														<c:forEach var="range" items="${linkmanRanges['23']}">
															<c:if test="${linkman.linkmanDutyId == range.id}">${range.rangeValue}</c:if>
														</c:forEach>
													</td>
													<td>
													
														<c:forEach var="range" items="${linkmanRanges['24']}">
															<c:if test="${linkman.itemRoleId == range.id}">${range.rangeValue}</c:if>
														</c:forEach>
													</td>
													<td>
													${linkman.mobile}
													</td>
													<td> 
													${linkman.email}
													</td>
												</tr>
												</c:forEach>
											</table>
										</td>
									</tr>
									<tr height="20px"></tr>
								</table>
							</div>
							<div id="t3" style="display: none;background-color: #F2F7FA;">
											
														<table  cellpadding="0" cellspacing="0" border="0" width="100%">
															<TR height="20px"></TR>
															<tr>
																<td>
																	<table style="padding: 0px;margin: 0px">
																		<tr>
																			<td width="30px"></td>
																			<td width="100px" class="newtd" height="18px">历史交易信息</td>
																		</tr>
																	</table>
																</td>
															</tr>
															<tr id="31">
																<td>
																
																	<table class="table31" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
																
																		<tr>
																			<td colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100">建档时间：</td>
																			<td align="left" width="300"><fmt:formatDate value="${customer.createDate}" pattern="yyyy年MM月dd日"/></td>
																			<td align="right" width="100">老客户：</td>
																			<td align="left">
																			<c:choose>
																				<c:when test="${saleInfo.historyContractCost != null && saleInfo.historyContractCost > 0}">是</c:when>
																				<c:otherwise>否</c:otherwise>
																			</c:choose>
																			</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100">合同数量：</td>
																			<td align="left" width="300">${saleInfo.contractNum}个</td>
																			<td align="right" width="100">历史合同金额：</td>
																			<td align="left" style="color: red;">￥ ${saleInfo.historyContractCost}元</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100">应收账款：</td>
																			<td align="left" width="300">￥ ${saleInfo.receivable}元</td>
																			<td align="right" width="100">开票金额：</td>
																			<td align="left">￥ ${saleInfo.invoiceCost}元</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100">费用支出：</td>
																			<td colspan="3" align="left">￥ ${saleInfo.saleCost}元</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td colspan="4"></td>
																		</tr>
																	</table>
																</td>
															</tr>
															<tr height="10px"></tr>
															<tr>
																<td>
																	<table style="padding: 0px;margin: 0px">
																		<tr>
																			<td width="30px"></td>
																			<td width="100px" class="newtd" height="18px">商务状态</td>
																		</tr>
																	</table>
																</td>
															</tr>
															<tr id="32">
																<td>
																	
																		<table class="table31" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
																	
																		<tr>
																			<td colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100"><!-- 客户来源 -->
																				<c:choose>
																					<c:when test="${language == 2}">${records['16'].currentRecordEn}：</c:when>
																					<c:otherwise>${records['16'].currentRecord}：</c:otherwise>
																				</c:choose>
																			</td>
																			<td align="left" width="300">
																				<c:choose>
																					<c:when test="${customer.customerSourceId == 1}"><fmt:message key='customer.select.self'/></c:when>
																					<c:when test="${customer.customerSourceId == 2}"><fmt:message key='customer.select.companySet'/></c:when>
																					<c:when test="${customer.customerSourceId == 3}"><fmt:message key='customer.select.market'/></c:when>
																					<c:otherwise><fmt:message key='customer.select.other'/></c:otherwise>
																				</c:choose>
																			</td>
																			<td align="right" width="100">指派时间：</td>
																			<td align="left"><fmt:formatDate value="${customer.assignDate}" pattern="yyyy年MM月dd日"/></td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100">跟进时间：</td>
																			<td align="left" width="300"><fmt:formatDate value="${customer.lastLink}" pattern="yyyy年MM月dd日"/></td>
																			<td align="right" width="100">销售阶段：</td>
																			<td align="left">${saleInfo.saleStage}</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100">销售代表：</td>
																			<td align="left" width="300">${customer.salePerson}</td>
																			<td align="right" width="100">共享状态：</td>
																			<td align="left">${customer.shareSalePersons}</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td align="right" width="100"><!-- 预测签约 -->
																				<c:choose>
																					<c:when test="${language == 2}">${records['17'].currentRecordEn}：</c:when>
																					<c:otherwise>${records['17'].currentRecord}：</c:otherwise>
																				</c:choose>
																			</td>
																			<td align="left"><fmt:formatDate value='${customer.predictContract}' pattern='yyyy-MM-dd'/></td>
																			<td align="right" width="100"><!-- 预测金额 -->
																				<c:choose>
																					<c:when test="${language == 2}">${records['18'].currentRecordEn}：</c:when>
																					<c:otherwise>${records['18'].currentRecord}：</c:otherwise>
																				</c:choose>
																			</td>
																			<td align="left">￥ 
																				<c:choose>
																					<c:when test="${customer.predictCost != null}">${customer.predictCost}</c:when>
																					<c:otherwise>0.00</c:otherwise>
																				</c:choose><fmt:message key='common.lable.yuan'/>
																			</td>
																		</tr>
																		<tr style="display: block;height: 2px;">
																			<td class="line1" colspan="4"></td>
																		</tr>
																		<tr>
																			<td colspan="4"></td>
																		</tr>
																	</table>
																</td>
															</tr>
															<tr height="10px"></tr>
															<tr>
																<td>
																	<table style="padding: 0px;margin: 0px">
																		<tr>
																			<td width="30px"></td>
																			<td width="100px" class="newtd" height="18px">需求描述</td>
																		</tr>
																	</table>
																</td>
															</tr>
															<tr style="display: block;height: 2px;">
																<td class="line1"></td>
															</tr>
															<tr id="33">
																<td>
																	
																		<table class="table31" style="display: block;width: 96%;padding: 0px;" align="center">
																	
																		<tr>
																			<td colspan="2">
																			</td>
																		</tr>
																		<tr>
																			<td width="30"></td>
																			<td colspan="3" align="left" valign="top"><pre>${customer.requireDesc}</pre></td>
																		</tr>
																	</table>
																</td>
															</tr>
														</table>
												
							</div>
							<div id="t4" style="display: none;">
								
											<table  cellpadding="0" cellspacing="0" border="0" width="100%">
												<tr height="20px"></tr>
												<tr>
													<td>
														<table style="padding: 0px;margin: 0px">
															<tr>
																<td width="30px"></td>
																<td width="100px" class="newtd" height="18px">当前商机活动</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr>
													<td>
														<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
															<tr>
																
																<td class="title" width="150">销售阶段</td>
																<td class="title" width="150">发生时间</td>
																<td class="title" width="150">活动主题</td>
																<td class="title" width="450">内容</td>
															</tr>
															<c:forEach var="saleRecord" items="${saleRecords}" begin="0" end="4">
															<tr>
																
																<td>
																	<c:forEach var="saleStage" items="${saleStages}">
																		<c:if test='${saleRecord.saleStageId == saleStage.stageCode}'>${saleStage.stageName}</c:if>
																	</c:forEach>
																</td>
																<td><fmt:formatDate value="${saleRecord.contactDate}" pattern="yyyy-MM-dd"/></td>
																<td>${saleRecord.subject}</td>
																<td>
																	<c:choose>
																		<c:when test="${fn:length(saleRecord.requireDesc) > 12}">${fn:substring(saleRecord.requireDesc,0,12)}......</c:when>
																		<c:otherwise>${customer.requireDesc}</c:otherwise>
																	</c:choose>
																</td>
															</tr>
															</c:forEach>
															<c:forEach var="saleRecord" items="${hangupSaleRecords}" begin="0" end="4">
															<tr>
																
																<td>
																	<c:forEach var="saleStage" items="${saleStages}">
																		<c:if test='${saleRecord.saleStageId == saleStage.stageCode}'>${saleStage.stageName}</c:if>
																	</c:forEach>
																</td>
																<td><fmt:formatDate value="${saleRecord.contactDate}" pattern="yyyy-MM-dd"/></td>
																<td>${saleRecord.subject}</td>
																<td>
																	<c:choose>
																		<c:when test="${fn:length(saleRecord.requireDesc) > 12}">${fn:substring(saleRecord.requireDesc,0,12)}......</c:when>
																		<c:otherwise>${customer.requireDesc}</c:otherwise>
																	</c:choose>
																</td>
															</tr>
															</c:forEach>
														</table>
													</td>
												</tr>
												<tr height="20px"></tr>
												<tr>
													<td>
														<table style="padding: 0px;margin: 0px">
															<tr>
																<td width="30px"></td>
																<td width="100px" class="newtd" height="18px">历史接触记录</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr>
													<td>
														<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
															<tr>
																
																<td class="title" width="150">销售阶段</td>
																<td class="title" width="150">发生时间</td>
																<td class="title" width="150">活动主题</td>
																<td class="title" width="450">内容</td>
															</tr>
															<c:forEach var="saleRecord" items="${hisRootSaleRecords}" begin="0" end="4">
															<tr>
																
																<td>
																	<c:forEach var="saleStage" items="${saleStages}">
																		<c:if test='${saleRecord.saleStageId == saleStage.stageCode}'>${saleStage.stageName}</c:if>
																	</c:forEach>
																</td>
																<td><fmt:formatDate value="${saleRecord.contactDate}" pattern="yyyy-MM-dd"/></td>
																<td>${saleRecord.subject}</td>
																<td>
																	<c:choose>
																		<c:when test="${fn:length(saleRecord.requireDesc) > 12}">${fn:substring(saleRecord.requireDesc,0,12)}......</c:when>
																		<c:otherwise>${customer.requireDesc}</c:otherwise>
																	</c:choose>
																</td>
															</tr>
															</c:forEach>
															<c:forEach var="saleRecord" items="${hisSaleRecords}" begin="0" end="4">
															<tr>
																
																<td>
																	<c:forEach var="saleStage" items="${saleStages}">
																		<c:if test='${saleRecord.saleStageId == saleStage.stageCode}'>${saleStage.stageName}</c:if>
																	</c:forEach>
																</td>
																<td><fmt:formatDate value="${saleRecord.contactDate}" pattern="yyyy-MM-dd"/></td>
																<td>${saleRecord.subject}</td>
																<td>
																	<c:choose>
																		<c:when test="${fn:length(saleRecord.requireDesc) > 12}">${fn:substring(saleRecord.requireDesc,0,12)}......</c:when>
																		<c:otherwise>${customer.requireDesc}</c:otherwise>
																	</c:choose>
																</td>
															</tr>
															</c:forEach>
														</table>
													</td>
												</tr>
												<tr height="20px"></tr>
											</table>
									
							</div>
							<div id="t5" style="display: none;">
								
											<table  cellpadding="0" cellspacing="0" border="0" width="100%">
												<tr height="20px"></tr>
												<tr>
													<td>
														<table style="padding: 0px;margin: 0px">
															<tr>
																<td width="30px"></td>
																<td width="100px" class="newtd" height="18px">附件</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr >
													<td>
														<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
															<tr>
																
																<td class="title" width="50">操作</td>
																<td class="title" width="300" align="center">主题</td>
																<td class="title" width="225">建档人</td>
																<td class="title" width="225">建档时间</td>
															</tr>
															<c:forEach var="systemFile" items="${customer.saleRecordAddeds}">
															<tr>
																
																<td class="a_detail">
																	<a href="javascript:downloadAdded('${systemFile.relatedId}','${systemFile.id}');" target="main">下载</a>
																</td>
																<td>${systemFile.fileName}</td>
																<td>${systemFile.person}</td>
																<td><fmt:formatDate value="${systemFile.uploadDate}" pattern="yyyy-MM-dd"/></td>
															</tr>
															</c:forEach>
														</table>
													</td>
												</tr>
												<tr height="20px"></tr>
											</table>
									
							</div>
							<div id="t6" style="display: none;">
								<table  cellpadding="0" cellspacing="0" border="0" width="100%">
									<tr height="20px"></tr>
									<tr>
										<td>
											<table style="padding: 0px;margin: 0px">
												<tr>
													<td width="30px"></td>
													<td width="100px" class="newtd" height="18px">合同信息</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center">
												<tr>		
															<td class="title" >合同编号</td>
															<td class="title" >合同名称</td>
															<td class="title" >合同总金额</td>
															<td class="title" >签约时间</td>
															<td class="title" >销售代表</td>
															<td class="title" >制单日期</td>
															<td class="title" >审核人</td>
															<td class="title" >审核日期</td>
															<td class="title" >备注</td>
												</tr>
												<c:forEach items="${contracts}" var="contract">
												<tr id="1">
													
													<td>${contract.contractCode}</td>
													<td>${contract.contractName}</td>
													<td>￥<font color="red">${contract.contractCost}</font>元</td>
													<td><fmt:formatDate value="${contract.contractDate}" pattern="yyyy-MM-dd"/></td>
													<td>${contract.salePerson}</td>
													<td><fmt:formatDate value="${contract.createDate}" pattern="yyyy-MM-dd"/></td>
													<td>${contract.auditPerson}</td>
													<td><fmt:formatDate value="${contract.auditDate}" pattern="yyyy-MM-dd HH:mm"/></td>
													<td width="180px">${contract.contractDesc}</td>
													
												</tr>
												</c:forEach>
											</table>
										</td>
									</tr>
									<tr height="20px"></tr>
								</table>
							</div>
							<div id="t7"  style="display: none;">
							
								<table  cellpadding="0" cellspacing="0" border="0" width="100%">
										<tr height="20px"></tr>
										<tr>
											<td>
												<table style="padding: 0px;margin: 0px">
													<tr>
														<td width="30px"></td>
														<td width="100px" class="newtd" height="18px">应收账款</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td>
												<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center" bordercolor="#B9C7D0" border="1px">
													<tr>		
																
																<td class="title" >合同编号</td>
																<td class="title" >合同名称</td>
																<td class="title" >合同总额</td>
																<td class="title" >回款累计</td>
																<td class="title" >回款次数</td>
																<td class="title" >应收余额</td>
													</tr>
													<c:forEach items="${contracts}" var="contract">
													<tr>
													
														<td>${contract.contractCode}</td>
														<td>${contract.contractName}</td>
														<td>${contract.contractCost}元</td>
														<td>${contract.backCost}元</td>
														<td>${contract.backCostNum}次</td>
														<td>${contract.receivable}元</td>
													</tr>
													</c:forEach>
												</table>
											</td>
										</tr>
									<tr height="20px"></tr>
								</table>
							</div>
							<div id="t8"  style="display: none;">
								<table  cellpadding="0" cellspacing="0" border="0" width="100%">
										<tr height="20px"></tr>
										<tr>
											<td>
												<table style="padding: 0px;margin: 0px">
													<tr>
														<td width="30px"></td>
														<td width="100px" class="newtd" height="18px">关怀记录</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td>
												<table class="table_style22" cellpadding="0" cellspacing="0" style="display: block;width: 96%;padding: 0px;" align="center" >
													<tr>
																
																<td class="title" width="150">销售阶段</td>
																<td class="title" width="150">发生时间</td>
																<td class="title" width="150">活动主题</td>
																<td class="title" width="450">内容</td>
															</tr>
															<c:forEach var="saleRecord" items="${careSaleRecords}" begin="0" end="4">
															<tr>
																
																<td>
																	<c:forEach var="saleStage" items="${saleStages}">
																		<c:if test='${saleRecord.saleStageId == saleStage.stageCode}'>${saleStage.stageName}</c:if>
																	</c:forEach>
																</td>
																<td><fmt:formatDate value="${saleRecord.contactDate}" pattern="yyyy-MM-dd"/></td>
																<td>${saleRecord.subject}</td>
																<td>
																	<c:choose>
																		<c:when test="${fn:length(saleRecord.requireDesc) > 12}">${fn:substring(saleRecord.requireDesc,0,12)}......</c:when>
																		<c:otherwise>${customer.requireDesc}</c:otherwise>
																	</c:choose>
																</td>
															</tr>
															</c:forEach>
															
												</table>
											</td>
										</tr>
									<tr height="20px"></tr>
								</table>
							</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<input id="customerName" name="customerName" type="hidden" value="${QueryLinkman.customerName}"/>
	<input id="linkmanName" name="linkmanName" type="hidden" value="${QueryLinkman.linkmanName}"/>
	<input id="industryId" name="industryId" type="hidden" value="${QueryLinkman.industryId}"/>
	<input id="areaId" name="areaId" type="hidden" value="${QueryLinkman.areaId}"/>
	<input id="officePhone" name="officePhone" type="hidden" value="${QueryLinkman.officePhone}"/>
	<input id="mobile" name="mobile" type="hidden" value="${QueryLinkman.mobile}"/>
	<input id="email" name="email" type="hidden" value="${QueryLinkman.email}"/>
	<input id="sFlag" name="sFlag" type="hidden" value="${sFlag}"/>
</form>
</body>

</html>